package siyuan.run.hystrix.dashboard2.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @program: sy
 * @description:
 * @author: Jacob
 * @create: 2020-11-24 22:42
 **/
@Primary
@FeignClient(contextId = "feignClient", name = "service-provider",fallback = HelloHystrix.class)
public interface HelloProvider2 {

    @GetMapping("/hello")
    public String hello();

}
